home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
arc
/
shezs19c.zip
/
DEEPSCAN.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-05-03
|
3KB
|
93 lines
ECHO OFF
:Remember you can FORCE a Scan Method to use by specifying it on the
:DOS command line like DEEPSCAN C: \TEMP 3
IF %2.==. GOTO :HELP
IF NOT EXIST %1\PRN GOTO :ERROR
IF NOT EXIST %1%2\PRN GOTO :ERROR
:Worse case, if GET.EXE is not in your path, you will get 2
:"Bad command or filename..." error messages.
:The next few lines cause DEEPSCAN.BAT to change back to the current
:drive: dir or to the drive:\dir specified on the command line.
SET GET=%1
GET YE
ECHO %GET%: > C:\C.BAT
SET GET=%2
GET Y
ECHO CD %GET% >> C:\C.BAT
:NOGET
%1
CD %2
IF %3.==. GOTO :1
IF %3.==1. GOTO :1
IF %3.==2. GOTO :2
IF %3.==3. GOTO :3
IF %3.==4. GOTO :4
IF %3.==GO. GOTO :1
GOTO :HELP
:1
IF NOT EXIST F:\WILDCAT\BATCH\SCANFILE.BAT GOTO :2
ECHO FOR %%A IN (*.*) DO IF EXIST %1%2\%%A CALL F:\WILDCAT\BATCH\SCANFILE %1%2\%%A %3 %4 %5 %6 %7 %8 %9
FOR %%A IN (*.*) DO IF EXIST %1%2\%%A CALL F:\WILDCAT\BATCH\SCANFILE %1%2\%%A %3 %4 %5 %6 %7 %8 %9
GOTO :DONE
:2
IF NOT EXIST C:\SECURITY\SHEZ.EXE GOTO :3
SET GET=This is used by ShezScan to make more ENVironment free in Shezfail.bat
SET SHEZLOG=C:\TEMP\SHEZ.LOG
SET PKTMP=C:\TEMP
ECHO FOR %%A IN (*.*) DO IF EXIST %1%2\%%A C:\SECURITY\SHEZ %1%2\%%A* /PLAY=C:\SECURITY\SHEZAZ.MAC
FOR %%A IN (*.*) DO IF EXIST %1%2\%%A C:\SECURITY\SHEZ %1%2\%%A* /PLAY=C:\SECURITY\SHEZAZ.MAC
SET GET=
SET SHEZLOG=
SET PKTMP=
GOTO :DONE
:3
IF NOT EXIST C:\MENU\MAXSCAN.BAT GOTO :4
ECHO FOR %%A IN (*.*) DO IF EXIST %1%2\%%A C:\MENU\MAXSCAN %1%2\%%A
FOR %%A IN (*.*) DO IF EXIST %1%2\%%A C:\MENU\MAXSCAN %1%2\%%A
GOTO :DONE
:4
IF NOT EXIST C:\SECURITY\SCAN.EXE GOTO :ERROR
ECHO FOR %%A IN (*.*) DO IF EXIST %1%2\%%A C:\SECURITY\SCAN %1%2\%%A
FOR %%A IN (*.*) DO IF EXIST %1%2\%%A C:\SECURITY\SCAN %1%2\%%A
GOTO :DONE
:DONE
IF EXIST F:\PRN F:
IF EXIST \WILDCAT\PRN CD\WILDCAT
IF EXIST C:\C.BAT C:\C
:ERROR
ECHO I detected an error trying to run DEEPSCAN.BAT
ECHO
ECHO Either I could not verify the drive:\dir of "%1%2"
ECHO (Please check your command line for the correct format)
ECHO Or I could not find ANY of the Scan_Methods.
ECHO
:HELP
ECHO This program simply selects EVERY file in the SPECIFIED DRIVE: \DIR
ECHO and then calls one of four possible virus scanning methods.
ECHO
ECHO 1) F:\WILDCAT\BATCH\SCANFILE.BAT (If available)
ECHO 2) C:\SECURITY\SHEZ /PLAY=C:\SECURITY\SHEZAZ.MAC " "
ECHO 3) C:\MENU\MAXSCAN " "
ECHO 4) C:\SECURITY\SCAN.EXE (or SCAN.EXE) " "
ECHO
ECHO To use this program simply tell it which Drive: \Directory to scan like:
ECHO
ECHO DEEPSCAN drive: \dir [Scan_Method] [options]
ECHO DEEPSCAN C: \TEST [1][2][3][4][GO=1-4_First Found]
ECHO
IF NOT %1.==. ECHO You specified "%1 %2 %3 %4 %5 %6 %7" on the command line.
GOTO :EXIT
:EXIT